<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>服务提醒查询</title>
<%@include file="../include/include.jsp"%>
<script type="text/javascript" src="${jspath}/jquery/jquery-1.8.3.js"></script>
<link rel="stylesheet" type="text/css"
	href="${bootstrapPath}/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="${csspath }/datepicker.css"/>
<script type="text/javascript" src="${jspath }/ui.datepicker_zh-CN.js"></script>
<script type="text/javascript" src="${jspath }/jquery.ui.min.js"></script>
<script type="text/javascript" src="${bootstrapPath}/js/bootstrap.js"></script> 
<script type="text/javascript" src="${layerPath}/layer.js"></script>
</head>
<style>
.icon {
	color: #FFFFFF;
}

.btnLength {
	width: 50px;
}

.checkbox-li {
	display: inline-block;
	width: 100px;
}

.boarder {
	/* //border: 1px solid #DDD; */
}

.text-label {
	width: 120px;
	height: 20px;
	line-height: 20px;
	font-size: 14px;
	font-weight: blod;
	text-align: left;
}

#high10 {
	height: 10px;
}

#high20 {
	height: 20px;
}

#high30 {
	height: 30px;
}

.page_div {
	height: 22px;
	border: 0px solid #F00;
}

.page_div .page_info {
	display: inline-block;
}

.page_div .page_opts {
	float: right;
}

.page_div .page_opts ul {
	list-style: outside none none;
}

#pageNumber2 {
	width: 30px;
}

.page_div .page_opts ul li {
	display: inline-block;
}

.form-control1 {
	width: 100%;
	height: 34px;
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.42857;
	color: #555;
	background-color: #FFF;
	background-image: none;
	border: 1px solid #CCC;
	border-radius: 0px;
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;
	transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s
		ease-in-out 0s;
}
</style>
<script type="text/javascript">
function search() {
	search_form.action = "${webcontext}/crmdp/dealer/remind/toRemindForCarplate?carPlate=" + encodeURI(encodeURI('${carPlate}'));
	document.getElementById("search_form").submit();
}
</script>
<body>
	<form:form id="search_form" action="" method="post">
	<div class="cantainer" style="width: 70%">
			<div>
				<table class="table" style="font-size: 80%; width: 100%;">
					<thead>
						<tr>
							<th><nobr>建议保养项目</nobr></th>
							<th><nobr>建议服务日期</nobr></th>
							<th><nobr>建议服务里程</nobr></th>
							<th><nobr>上次服务日期</nobr></th>
							<th><nobr>上次服务里程</nobr></th>
							<th><nobr>上次查车日期</nobr></th>
							<th><nobr>上次查车里程</nobr></th>
							<th><nobr>现用产品</nobr></th>
							<th><nobr>产品描述</nobr></th>
							<th><nobr>已提醒次数</nobr></th>
						</tr>
					</thead>
					<tbody>
						<core:forEach items="${list}" var="list" varStatus="status">
							<tr>
								<td>${list.maintenanceItem }</td>
								<td><core:if
										test="${fn: substring (list.nextCalcDate,0,10) eq 'null'}"></core:if>
									<core:if
										test="${fn: substring (list.nextCalcDate,0,10) ne 'null'}">${ fn: substring (list.nextCalcDate,0,10)}</core:if>
								</td>
								<td><core:if test="${list.nextCalcDate eq 'null'}"></core:if>
									<core:if test="${ list.nextCalcMileage ne 'null'}">${ list.nextCalcMileage}</core:if>
								</td>
								<td><core:if
										test="${ fn: substring (list.lastMaintenanceDate,0,10) eq 'null'}"></core:if>
									<core:if
										test="${ fn: substring (list.lastMaintenanceDate,0,10) ne 'null'}">${ fn: substring (list.lastMaintenanceDate,0,10)}</core:if>
								</td>
								<td><core:if
										test="${list.lastMaintenanceMileage eq 'null'}"></core:if> <core:if
										test="${ list.lastMaintenanceMileage ne 'null'}">${ list.lastMaintenanceMileage}</core:if>
								</td>
								<td><core:if
										test="${ fn: substring (list.lastCarcheckDate,0,10) eq 'null'}"></core:if>
									<core:if
										test="${ fn: substring (list.lastCarcheckDate,0,10) ne 'null'}">${ fn: substring (list.lastCarcheckDate,0,10)}</core:if>
								</td>
								<td><core:if test="${list.lastCarcheckMileage eq 'null'}"></core:if>
									<core:if test="${list.lastCarcheckMileage ne 'null'}">${ list.lastCarcheckMileage}</core:if>
								</td>
								<td>${list.lastPartBrand }</td>
								<td>${list.lastPartName }</td>
								<td>${list.remindTimes}</td>
							</tr>
						</core:forEach>
					</tbody>
				</table>
			</div>
			<div class="page_div">
				<%@include file="../common/page.jsp"%>
			</div>
		</div>
		</form:form>
</body>
</html>